package br.com.skytef.dao;

import java.sql.Connection;

import javax.servlet.http.HttpSession;

import br.com.skytef.entity.PosEntity;
import br.com.skytef.jdbc.ConnectionFactory;
import br.com.skytef.utils.utils;

public class PosDao {
	public Connection connection;
	
	public PosDao(){
		this.connection = new ConnectionFactory().getConnection();
	}
	
	public PosDao(HttpSession session){
		this.connection = utils.recoverSessionDBConnection(session);
	}
	
	public PosDao(Connection con){
		this.connection = con;
	}
	
	public Connection getConnection(){
		return connection;
	}

	public PosEntity getPos(String serial) {
		PosEntity pos = new PosEntity();

		return pos;
	}

}
